//非插件写法
/* import Vue from "vue";

import TypeNav from "@/components/TypeNav";
import Swiper from "@/components/Swiper";
import Pagination from "@/components/Pagination";
//全局注册TypeNav组件
Vue.component("TypeNav", TypeNav);
Vue.component("Swiper", Swiper);
Vue.component("Pagination", Pagination); */

import TypeNav from "@/components/TypeNav";
import Swiper from "@/components/Swiper";
import Pagination from "@/components/Pagination";
//插件的函数,将来被Vue.use()使用的时候,默认认为是install函数
//install函数接受Vue作为参数
export default function (Vue) {
  //全局注册TypeNav组件
  Vue.component("TypeNav", TypeNav);
  Vue.component("Swiper", Swiper);
  Vue.component("Pagination", Pagination);
}
